package com.bandit.service.impl;

import com.bandit.mapper.LabMapper;
import com.bandit.pojo.Lab;
import com.bandit.service.LabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LabServiceImpl implements LabService {

    @Autowired
    LabMapper labMapper;

    @Override
    public Lab selectLabByID(int labID) {
        return labMapper.selectLabByID(labID);
    }

    @Override
    public List<Lab> selectLabList(Lab lab) {
        return labMapper.selectLabList(lab);
    }

    @Override
    public int insertLab(Lab lab) {
        return labMapper.insertLab(lab);
    }

    @Override
    public int updateLab(Lab lab) {
        return labMapper.updateLab(lab);
    }

    @Override
    public int deleteLabByID(int labID) {
        return labMapper.deleteLabByID(labID);
    }

    @Override
    public int deleteLabByIDS(String[] labIDS) {
        return labMapper.deleteLabByIDS(labIDS);
    }
}
